﻿using AutoMapper;
using StarsAdmin.Application.Dict.Dtos;
using StarsAdmin.Application.Menu.Dtos;
using StarsAdmin.Core.DB.Entities;
using StarsAdmin.Core.Extensions;
using StarsAdmin.Core.Models;

namespace StarsAdmin.Application.Menu.Mappings
{
    public class DictTypeAutoMapperProFile : Profile
    {
        public DictTypeAutoMapperProFile()
        {
            CreateMap<Page<DictTypeEntity>, Page<DictTypeDto>>();
            CreateMap<AddDictTypeInput, DictTypeEntity>();
            CreateMap<UpdateDictTypeInput, DictTypeEntity>();
            CreateMap<DictTypeEntity, DictTypeDto>();
            CreateMap<DictTypeEntity, ExportDictTypeDto>();
        }
    }
}